package cn.edu.scau.cmi.ema.dao;

import java.util.Set;

import org.springframework.dao.DataAccessException;
import cn.edu.scau.cmi.ema.domain.*;
import cn.edu.scau.cmi.ema.domain.base.CmiPagination;

public interface PictureDAO extends JpaDao<Picture> {

	public Picture findPictureById(Integer id) throws DataAccessException;

	public Picture findPictureById(Integer id, int startResult, int maxRows) throws DataAccessException;

	public Set<Picture> findPictureByName(String name) throws DataAccessException;

	public Set<Picture> findPictureByName(String name, int startResult, int maxRows) throws DataAccessException;

	public Set<Picture> findPictureByNameContaining(String name_1) throws DataAccessException;

	public Set<Picture> findPictureByNameContaining(String name_1, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Picture> findPictureByPath(String path) throws DataAccessException;

	public Set<Picture> findPictureByPath(String path, int startResult, int maxRows) throws DataAccessException;

	public Set<Picture> findPictureByPathContaining(String path_1) throws DataAccessException;

	public Set<Picture> findPictureByPathContaining(String path_1, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Picture> findPictureByDescription(String description) throws DataAccessException;

	public Set<Picture> findPictureByDescription(String description, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Picture> findPictureByDescriptionContaining(String description_1) throws DataAccessException;

	public Set<Picture> findPictureByDescriptionContaining(String description_1, int startResult, int maxRows)
			throws DataAccessException;

	public Picture findPictureByPrimaryKey(Integer id) throws DataAccessException;

	public Picture findPictureByPrimaryKey(Integer id, int startResult, int maxRows) throws DataAccessException;

	public Set<Picture> findPicturesByIds(Set<Integer> ids) throws DataAccessException;

	public Set<Picture> findAllPictures() throws DataAccessException;

	public Set<Picture> findAllPictures(int startResult, int maxRows) throws DataAccessException;

	public Set<Picture> findPicturesByEvent(Integer eventId, int start, int max);

	public Set<Picture> findPicturesByFood(Integer foodId, int start, int max);

	public Set<Picture> findPictureByCompositeProperities(String sql, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Picture> findPicturesByDetachedCriteria(CmiPagination page) throws DataAccessException;

	public Picture findPictureByPhysicalPrimaryKey(String name, String path) throws DataAccessException;

	public Picture findPictureByPhysicalPrimaryKey(String name, String path, int startResult, int maxRows)
			throws DataAccessException;
}
